#pragma once
#include "BaseVector.h"
class Vector2
	:public BaseVector
{
public:
	Vector2(double x = 0, double y = 0, double w = 1);
	Vector2(const Vector2& v);
	Vector2(const BaseVector& v);
	~Vector2();

	void Set(double x, double y, double w=1);
	void SetX(double x);
	void SetY(double y);
	void SetW(double w);
	double GetX() const;
	double GetY() const;
	double GetW() const;

	Vector2& operator=(const Vector2& v);
	Vector2& operator=(const BaseVector& v);

	static Vector2 FromMatrix(Matrix mat);
};

